<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>flex</title>
    <style>
        .flex1{
            width:500px;
            height:500px;
            border:1px solid black;
            display: flex;
        }
        .flex1 div{
            border-radius: 50%;
            line-height: 150px;
            text-align: center;
            width:150px;
            height:150px;
            background-color:red;
            margin:5px;
        }
        .flex1 div:nth-of-type(1){
            align-self: flex-start;
        }
        .flex1 div:nth-of-type(2){
            align-self: center;
        }
        .flex1 div:nth-of-type(3){
            align-self: flex-end;
        }
    </style>
</head>
<body>
<div class="flex1">
    <div>0</div>
    <div>1</div>
    <div>2</div>
</div>
<script>

</script>
</body>
</html>